Page Index Toggle Pages: 1 [2]  Send TopicPrint
Hot Topic (More than 10 Replies) Problems (Read 11874 times)
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Problems
Reply #4 - Dec 1st, 2014 at 8:29pm
Print Post  
Here's a fix to be tested.
In Admin/Maintenance.pm find
Code (Perl)
Select All
    if ($save_moved) { save_moved_file(); } 



Add after
Code (Perl)
Select All
## New forum.totals rebuild ##
    my @newtots = ();
    my @myline1 = ();
    while( ($key, $value) = each %board ) {
        $ftotals = 0;
        fopen ( TOTALS, "<$boardsdir/$key.txt" );
        my @ftotals = <TOTALS>;
        fclose(TOTALS);
        chomp @ftotals;
        $ftotals = @ftotals;
        if ( !$ftotals ) {
            $msgtot = 0;
            $myline1[4] = 'N/A';
            $myline1[0] = q{};
            $myline1[5] = q{};
            $myline1[7]= q{};
            $mesg[0] = q{};
            $messby = 'N/A';
            $msgts = 0;
        }
        else {
            @myline1 = split /[|]/xsm, $ftotals[0];
            $msgtot = 0;
            $msgts = $myline1[8];
            for (@ftotals) {
                @totalsvars = split /[|]/xsm, $_;
                $msgtot += $totalsvars[5] + 1;
            }
            fopen ( TOTALSN, "<$datadir/$myline1[0].txt" );
            my @ftotalsn = <TOTALSN>;
            fclose(TOTALSN);
            @mesg =  split /[|]/xsm, $ftotalsn[-1];
            $messby = $myline1[6];
            if ( $messby eq 'Guest') {
                $messby = $myline1[2];
            }
        }
        push @newtots, qq~$key|$ftotals|$msgtot|$myline1[4]|$messby|$myline1[0]|$myline1[5]|$mesg[0]|$myline1[7]|$msgts\n~;
    }
    fopen ( NTOTALS, ">$boardsdir/forum.totals" );
    print {NTOTALS} @newtots;
    fclose(NTOTALS); 



This will rebuild forum.totals from the rebuilt Message Index during Rebuild Message Index. It's been tested on a small data set and hopefully won't have problems on a big one.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Problems
Reply #3 - Dec 1st, 2014 at 5:42pm
Print Post  
The errors in forum.totals were also in the backup I grabbed. It looks like at some point some change in coding really messed up forum.totals (and not just on your forum) and it appears to be specific to 2.6.0 as it isn't messed up here but was on my main offline test site. 

To complicate matters, forum.totals doesn't get rebuilt during the rebuild Message Index process. So that's the first thing that needs to get fixed. I'm hoping that will take care of both problems.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
pyragony54
God Member
*****
Offline


I Love YaBB!

Posts: 664
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Re: Problems
Reply #2 - Dec 1st, 2014 at 4:23pm
Print Post  
Be careful, the backup is still on 2.6.0
For the topic structure that is still okay.
But not in the notifications. The still functioned without problems in 2.6.0
  

Bad manners keep people but the only reason for a kind of privilege, because no skin them on the mouth.
Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Problems
Reply #1 - Dec 1st, 2014 at 4:19pm
Print Post  
It appears (at least partly) to be a problem with recreating the forum.totals file.  Cry
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
pyragony54
God Member
*****
Offline


I Love YaBB!

Posts: 664
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Problems
Dec 1st, 2014 at 10:45am
Print Post  
Tonight I have my forum updated to 2.6.1 Build 1603.

Thread index simply can not build up. Many forums are for me to zero, although contributions and themes are available.

This issue we had:
Topics Notifications can not rebuild.

@ Dandello

In my forum you've got admin rights. Check this out please themselves.

  

Bad manners keep people but the only reason for a kind of privilege, because no skin them on the mouth.
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint